<html>
<head><meta charset="utf-8"><title>combining several -Zunpretty flags · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html">combining several -Zunpretty flags</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227853016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227853016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227853016">(Feb 25 2021 at 22:50)</a>:</h4>
<p>Is there a reason why I can't show <code>-Zunpretty=mir</code> and for example <code>-Zunpretty=everybody_loops</code> at the same time?<br>
The output could just be printed one after another</p>



<a name="227853134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227853134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227853134">(Feb 25 2021 at 22:51)</a>:</h4>
<p>huh, apparently the last one you pass overrides all the previous ones</p>



<a name="227853199"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227853199" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227853199">(Feb 25 2021 at 22:52)</a>:</h4>
<p>showing both seems reasonable</p>



<a name="227853419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227853419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227853419">(Feb 25 2021 at 22:54)</a>:</h4>
<p>I'm trying to abuse the flags to find ICEs (while skipping llvm codegen) and currently I'm running rustc five times on every file just for different <code>-Zunpretty=</code> outputs :/</p>



<a name="227859978"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227859978" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227859978">(Feb 25 2021 at 23:55)</a>:</h4>
<p>well, got some untested  ItBuilds™  concept where instead of one of <code>hir-tree</code> <code>hir,typed</code> <code>mir</code>, <code>everybody_loops</code> you could pass <code>Zunpretty=hir-tree,hir+typed,mir,everybody_loops,expanded+hygiene</code></p>



<a name="227863903"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227863903" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227863903">(Feb 26 2021 at 00:37)</a>:</h4>
<p>hmm, since <code>everybody_loops</code> modifies the IR of the code, its changes  show up in the other pretty-printing-modes as well<br>
Not sure if there is a lot that I can do about that</p>



<a name="227868160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/combining%20several%20-Zunpretty%20flags/near/227868160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/combining.20several.20-Zunpretty.20flags.html#227868160">(Feb 26 2021 at 01:25)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/82540">https://github.com/rust-lang/rust/pull/82540</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>